package com.xiaoyu.templete.controller;


import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.common.core.web.page.BaseController;
import com.pureut.common.core.web.page.TableDataInfo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static com.pureut.common.core.utils.PageUtils.startPage;

public class TempleteController extends BaseController {

    /**
     * 列表
     */
    @GetMapping("/list")
    public TableDataInfo getList(Object o) {
        startPage();
        //查询委外入库列表
//        List<SampleStorageTableDto> list = iSampleStorageService.getList(o);
//        return getDataTable(list);
        return null;
    }

    /**
     * 新增
     */
    @PostMapping("/add")
    public AjaxResult add(@RequestBody Object sampleStorageAddVo){
        //return toAjax(iSampleStorageService.add(sampleStorageAddVo));
        return null;
    }

    /**
     * 查看
     */
    @GetMapping("/view/{id}")
    public AjaxResult view(@PathVariable("id") String id){
        //return AjaxResult.success(iSampleStorageService.view(id));
        return null;
    }

    /**
     * 修改
     */
    @PutMapping("/edit")
    public AjaxResult edit(@RequestBody Object sampleStorageAddVo){
        //return toAjax(iSampleStorageService.edit(sampleStorageAddVo));
        return null;
    }

    /**
     * 删除
     */
    @DeleteMapping("/remove/{id}")
    public AjaxResult remove(@PathVariable("id") String id){
        //return toAjax(iSampleStorageService.remove(sampleStorageAddVo));
        return null;
    }


}
